package com.liferay;

import javax.portlet.Event;
import javax.portlet.EventRequest;
import javax.portlet.EventResponse;
import javax.portlet.ProcessEvent;

import com.liferay.util.bridges.mvc.MVCPortlet;

public class EventRecieverPortlet extends MVCPortlet {
 
 //   @ProcessEvent(qname = "{http://liferay.com")
    public void processEvent(EventRequest request, EventResponse response) {
        Event event = request.getEvent();
        //Get data from the event
        String sampleText = (String) event.getValue();
        //String sampleText1=(String)event.getValue();
        //Set the text in response to display in UI
        System.out.println("the text is recieved "+sampleText);
        response.setRenderParameter("sampleText", sampleText);
        
    }
 
}